Skip to main content

mergMKDirectionsAddPolylineOverlay

Type

command

Summary

Add a polyline overlay showing the directions for a route or a step within a route

Syntax

mergMKDirectionsAddPolylineOverlay <pDirectionID>, <pRouteNumber>, [<pStepNumber>], [<pLineWidth>], [<pLineColor>]

Description

Add a polyline overlay showing the directions for a route or a step within a route

Parameters

NameTypeDescription

pDirectionID

A directions ID as returned by the mergMKDirections message

pRouteNumber

A route number between 1 and the number of routes sent in the mergMKDirections message

pStepNumber

(optional with 0 default) The step number within the route. If you want to draw the entire route polyline then set this parameter to 0

pLineWidth

(optional with 3 default) the width of the line in points defaults to 3

pLineColor

(optional with "0,0,0,0" default) the color of the line defaults to opaque red. The string is an RGB value with each color component an integer between 0 and 255. An optional fourth item between 0 and 255 may be included to represent the alpha transparency.

Value

NameTypeDescription

return

the overlay id as required by mergMKDeleteOverlay

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?